
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<jsp:include page="../headerlinks.jsp" />
<div>
	<form:form id="simpleForm" action="updatePost.htm" commandName="fbb" method="POST">
		<c:set var="post" value="${fbb.post}"/>
		<input type="hidden" name="objId" value="${post.objId}">
		<div class="contentcell cleft">
			<div class="ui-corner-all ui-state-error" style="padding: 0.7em;">
				<p  id="successfailuremsg">
					<span class="ui-icon ui-icon-check"></span>
				</p>
			</div>
		</div>
		<div class="contentcell cright">
			<div class="ui-widget-header  ui-state-default">
				<h6 align="center">
					<fmt:message key="update.post.text" />
				</h6>
			</div>
			<div class="ui-widget-content">
				<br>
				<div class="leftmargin">
					<span>
						<label for="updatePostTitle" class="ui-widget">
							<fmt:message key="update.post.title.text"/>
						</label>
					</span>
					<span>
						<input class="ui-widget" type="text" id="updatePostTitle" name="postTitle" value="${post.postTitle}" size="50"/>
					</span>
				</div>
				<br>
				<div class="leftmargin">
					<textarea class="ui-widget" id="updatePostContent" name="postContent" cols="80" rows="20" wrap="soft"></textarea>
				</div>
				<br>
				<div id="submitButton" align="right" class="rightmargin">
					<input type="submit" id="post" value="<fmt:message key="updatepost.submit.button.text"/>" class="ui-button" />
				</div>
				<br>
			</div>
		</div>

	</form:form>
</div>

<jsp:include page="../footer.jsp"></jsp:include>